package com.example.adminvue.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @TableName b_kind
 */
@Data
@TableName(value = "b_kind")
public class BKind extends BaseEntity  implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 分类名称
     */
    private String kindName;

    /**
     * 上级id
     */
    private Long pid;

    private transient List<Menu> children = new ArrayList<Menu>();

}
